package com.soda.service.impl;

import java.util.List;

import com.soda.bean.Information;
import com.soda.bean.Notice;
import com.soda.dao.InformationDao;
import com.soda.dao.NoticeDao;
import com.soda.dao.impl.InformationDaoImpl;
import com.soda.dao.impl.NoticeDaoImpl;
import com.soda.service.InformationService;
import com.soda.util.PageInfo;
import com.soda.util.SelectInformInfo;
import com.soda.util.SelectNoticeInfo;

public class InformationServiceImpl implements InformationService{
	InformationDao ind = new InformationDaoImpl();


	//分页加条件查询

	public List<Information> getInform(SelectInformInfo sii, PageInfo pi) {

		return ind.getInform(sii, pi);
	}
	//查询信息有几条

	public int getInformCount(SelectInformInfo sii) {
		// TODO Auto-generated method stub
		return ind.getInformCount(sii);
	}

	//删除

	public int deleteById(int id) {
		// TODO Auto-generated method stub
		return ind.deleteById(id);
	}
	
	//根据ID查信息
	
	public Information showAllInform(int id) {
		// TODO Auto-generated method stub
		return ind.showAllInform(id);
	}
 //修改

	public int updateInform(int id,int recommend, String neirong) {
			 
		return ind.updateInform(id,recommend,neirong);
	}
//增加
	public int addInform(Information inform) {
		 
		return ind.addInform(inform);
	}
//批量删除
	public int delAllInform(String[] nids) {
		 
		return ind.delAllInform(nids);
	}
	//导出
 
public List<Information> exportInform(String[] count) {
 
	return ind.exportInform(count);
}

public int updateStateNews(int newId, int state) {
	 
	return ind. updateStateNews(  newId,  state) ;
}

	


 
}
